package base.demo;

import java.util.Arrays;
import java.util.Deque;
import java.util.LinkedList;

public class DequeTest001 {
  public static void main(String[] args) {
    Deque<Integer> queue = new LinkedList<>(Arrays.asList(1, 2));

    queue.addLast(1);
    queue.addLast(2);
    queue.addLast(3);
    
    System.out.println(queue.peek());
  }
}
